<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\Celue
 *
 * @property int $id
 * @property string|null $title
 * @property string|null $jianjie
 * @property string|null $logo
 * @property string|null $detail
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property int|null $is_display
 * @method static \Illuminate\Database\Eloquent\Builder|Celue newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Celue newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Celue query()
 * @method static \Illuminate\Database\Eloquent\Builder|Celue whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Celue whereDetail($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Celue whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Celue whereIsDisplay($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Celue whereJianjie($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Celue whereLogo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Celue whereTitle($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Celue whereUpdatedAt($value)
 * @mixin \Eloquent
 * @property int|null $celue_type_id 策略类型
 * @method static \Illuminate\Database\Eloquent\Builder|Celue whereCelueTypeId($value)
 * @property int|null $view_num 浏览数量
 * @property-read \App\Models\CelueType|null $type
 * @method static \Illuminate\Database\Eloquent\Builder|Celue whereViewNum($value)
 */
class Celue extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'celue';
    public function type(){
        return $this->belongsTo(CelueType::class,'celue_type_id');
    }

}
